package com.flyone.fuxiao.service.impl;

import com.flyone.fuxiao.mapper.MusicMapper;
import com.flyone.fuxiao.model.entity.Music;
import com.flyone.fuxiao.service.MusicService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @program: text-to-picture
 * @ClassName: MusicServiceImpl
 * @description: 纯音乐播放
 * @author: banyun
 * @create: 2024-04-19 20:11
 */
@Service
public class MusicServiceImpl implements MusicService {
    private final MusicMapper musicMapper;

    @Autowired
    public MusicServiceImpl(MusicMapper musicMapper) {
        this.musicMapper = musicMapper;
    }

    @Override
    public Music getMusic(int id) {
        return musicMapper.getMusic(id);
    }
}